home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 027a / clhlp110.zip / CLIPHELP.DOC < prev    next >
Text File  |  1991-10-24  |  38KB  |  1,004 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.              HHHHHHH.
  13.              HH:^^^^^ HH. HH.          (C) 1991 S.R. Eddy & Associates
  14.              HH:      HH:  ^^
  15.              HH:      HH: HH. HHHHHHH. HH.   HH.
  16.              HH:      HH: HH: HH:^^HH: HH:   HH:          HH.
  17.              HH:      HH: HH: HH:  HH: HH:   HH:          HH:
  18.              HH:      HH: HH: HH:  HH: HHHHHHHH: HHHHHHH. HH: HHHHHHH.
  19.              HHHHHHH. HH: HH: HHHHHHH: HH:^^^HH: HH:^^HH: HH: HH:^^HH:
  20.               ^^^^^^^  ^^  ^^ HH:^^^^^ HH:   HH: HHHHHHH: HH: HH:  HH:
  21.                               HH:      HH:   HH: HH:^^^^^ HH: HH:  HH:
  22.                                ^^      HH:   HH: HHHHHHH. HH: HHHHHHH:
  23.                                         ^^    ^^  ^^^^^^^  ^^ HH:^^^^^
  24.             Perth, Western Australia                          HH:
  25.                                                                ^^
  26.  
  27.  
  28.  
  29.  
  30.                                  An easy way to add
  31.  
  32.          F U L L   C O L O R   C O N T E X T - S E N S I T I V E   H E L P
  33.  
  34.                 to your Clipper (Summer '87 and 5.01) applications
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.                                      Version 1.1
  43.  
  44.                                    October 24, 1991
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.                                S.R.  Eddy & Associates
  53.                                    267 Acourt Road
  54.                                   CANNING VALE 6155
  55.                                   Western Australia
  56.  
  57.  
  58.                                  Tel:  (09) 455-1004
  59.  
  60.  
  61.                                      CONTENTS
  62.  
  63.              Disclaimer .......................................     3
  64.  
  65.              License ..........................................     3
  66.  
  67.              Registration .....................................     3
  68.  
  69.              Order Form .......................................     5 
  70.  
  71.              1.   Purpose .....................................     6
  72.  
  73.              2.   Installation ................................     6
  74.  
  75.              3.   ClipHelp demonstration ......................     6
  76.  
  77.              4.   Steps involved in creating and incorporating
  78.                        Help in your application ...............     7
  79.  
  80.              5.   Preparing Help Text .........................     7
  81.  
  82.              6.   Creating the on-screen file which your
  83.                        application will use ...................     8
  84.  
  85.              7.   Adding color to your on-screen help file ....     8
  86.  
  87.              8.   Rewriting HELP.TXT with the codes entered in
  88.                        the color editor .......................     10
  89.  
  90.              9.   Adding context-sensitivity to your HELP.TXT
  91.                        file ...................................     11
  92.  
  93.              10.  Printing a User Manual (Registered version) .     12
  94.  
  95.              11.  Clipper Summer '87 version - PUBLIC variables
  96.                        to declare in your application .........     14
  97.  
  98.              12.  Clipper 5 version - Declarations in your
  99.                        application .................................14
  100.  
  101.              13.  Points to remember when using INKEY(0) ......     15
  102.  
  103.              14.  Linking ClipHelp's .OBJ and .LIB files in
  104.                        your application .......................     15
  105.  
  106.              15.  ClipHelp's command line parameters ..........     16
  107.  
  108.              16.  Credits .....................................     17
  109.  
  110.              17.  Copyright, Trademark etc ....................     17
  111.  
  112.  
  113.  
  114.  
  115.  
  116.         -------------------------------------------------------------------
  117.         ClipHelp (C) User Manual      Page 2             S.R. Eddy & Assoc     
  118.  
  119.  
  120.                                  DISCLAIMER
  121.  
  122.         S.R. Eddy & Associates hereby disclaims all warranties relating to
  123.         this product, whether express or implied, including without
  124.         limitation any implied warranties of merchantability or fitness
  125.         for a particular purpose. S.R. Eddy & Associates cannot and will
  126.         not be liable for any special, incidental, consequential, indirect
  127.         or similar damages due to loss of data or any other reason, even
  128.         if S.R. Eddy & Associates or an authorized S.R. Eddy & Associates
  129.         agent has been advised of the possibility of such damages.  In no
  130.         event shall the liability for any damages ever exceed the price
  131.         paid for the license to use software, regardless of the form
  132.         and/or extent of the claim.  The user of this program bears all
  133.         risk as to the quality and performance of the software.
  134.  
  135.  
  136.                                    LICENSE
  137.  
  138.         ClipHelp is a Shareware product and is made available to the
  139.         general computing public as such for evaluation.  Users are
  140.         licensed to operate ClipHelp on their personal computers for the
  141.         purpose of test and evaluation on a trial basis for a period of 30
  142.         days.  If the user decides the program is not of sufficient merit
  143.         to warrant purchase through registration with S.R. Eddy &
  144.         Associates, the program should be removed from the user's personal
  145.         computer.  Otherwise, if the program is deemed useful and the user
  146.         has used or intends to use it in any of his or her programs,
  147.         registration with S.R. Eddy & Associates is required.
  148.  
  149.         Registered users are those users that elect to pay for ClipHelp
  150.         and register by payment with S.R. Eddy & Associates.  By virtue of
  151.         registration and payment for the program, registered users are
  152.         granted a license to continue to utilize the program on their
  153.         personal computer for as long as they choose.  This license
  154.         authorizes the user to use the program on any personal computer
  155.         system he or she may own so long as the program is operated on
  156.         only one computer system at a time.
  157.  
  158.         Site licenses for use of ClipHelp on multiple computers are
  159.         available upon request at a reduced fee based upon the number of
  160.         single machines licensed for use.
  161.  
  162.  
  163.                                 REGISTRATION
  164.  
  165.         ClipHelp is the sole property of S.R. Eddy & Associates. The
  166.         Shareware version, and ONLY that version, may be freely copied and
  167.         transferred to individual parties for evaluation purposes.  The
  168.         Shareware version, and ONLY that version, may be posted on
  169.         Bulletin Board Systems (BBS) for electronic access as long as NO
  170.         FEE is charged for its distribution except for private BBS
  171.         operations that charge a regular user subscription fee.  Computer
  172.         information services are authorized to post this product for
  173.  
  174.  
  175.         -------------------------------------------------------------------
  176.         ClipHelp (C) User Manual      Page 3             S.R. Eddy & Assoc     
  177.  
  178.         subscriber access. The Shareware version of ClipHelp may NOT be
  179.         distributed on diskette by any disk distributor/vendor that
  180.         charges more than $12.00 for the diskette upon which the program
  181.         and attendant files are recorded without written consent from
  182.         S.R.Eddy & Associates.
  183.  
  184.         ClipHelp is a fully functional Shareware product.  Shareware is a
  185.         computer program distribution/marketing method that permits
  186.         potential buyers to thoroughly try the program prior to purchase. 
  187.         It is NOT free and it is not in the Public Domain.  If, after
  188.         evaluating the program, you find it to be useful enough to
  189.         incorporate into one or more applications, you are expected to pay
  190.         for it by registering with S.R. Eddy & Associates. The
  191.         registration fee is $48.00 and the registered version which will
  192.         be sent in return, which is NOT distributed as Shareware, will not
  193.         contain Shareware labels nor the closing message. The registered
  194.         version also includes the ability to print a paginated User Manual
  195.         with Table of Contents generated from the on-screen help data
  196.         which you incorporate in your application.
  197.  
  198.  
  199.         You may register by completing and despatching the form on the
  200.         following page together with the registration fee stated therein.
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.         -------------------------------------------------------------------
  235.         ClipHelp (C) User Manual      Page 4             S.R. Eddy & Assoc     
  236.  
  237.                                O R D E R   F O R M
  238.                                ===================
  239.  
  240.         Mail To:  S.R. Eddy & Associates   Phone:(Intnl) (+61) 9 455-1004
  241.                   267 Acourt Road
  242.                   CANNING VALE, PERTH
  243.                   WESTERN AUSTRALIA   6155
  244.  
  245.         ____________________________________________________________________
  246.  
  247.         Please tick as appropriate:
  248.  
  249.         Mastercard ____   Visa ____   Bankcard ____ (Australia Only)
  250.  
  251.         Cheque     ____   (Sorry... Aust $, drawn on Australian Banks only.)
  252.  
  253.         Card Number:  _____________________________   Expiry Date:  ________
  254.  
  255.         Name:       ________________________________________________________
  256.  
  257.         Signature:  ________________________________________________________
  258.  
  259.         Company:  __________________________________________________________
  260.  
  261.         Position: __________________________________________________________
  262.  
  263.         Address:  __________________________________________________________
  264.  
  265.         City:  ________________  State:  _______________  Zip/Postcode _____
  266.  
  267.         Country:  _____________________  Phone:  ___________________________
  268.  
  269.  
  270.         DESCRIPTION                                QTY      UNIT       TOTAL    
  271.                                                   PRICE               AMOUNT
  272.         ____________________________________________________________________
  273.  
  274.         Within Australia:
  275.  
  276.              ClipHelp (program and manual on disk) ____ @ Aust$48.00 _______
  277.  
  278.                   (Price includes airmail postage & packing)
  279.  
  280.         Other than Australia:
  281.  
  282.              ClipHelp (program and manual on disk) ____ @   US$48.00 _______
  283.  
  284.                   (Price includes airmail postage & packing)                    
  285.                                                                     ========
  286.  
  287.                                      TOTAL ORDER VALUE (Aust/US)$   ________
  288.  
  289.              Preference: 5.25" (360k) Disk   ____  or 3.5" (720k) Disk  ____
  290.  
  291.  
  292.  
  293.         -------------------------------------------------------------------
  294.         ClipHelp (C) User Manual      Page 5             S.R. Eddy & Assoc     
  295.  
  296.  
  297.         1.   Purpose
  298.  
  299.         ClipHelp is intended to help you incorporate attractive and
  300.         effective on-screen help in your applications, providing:
  301.  
  302.         *    An almost unlimited number of help topics.
  303.  
  304.         *    Topics size of from just a few lines to a virtually unlimited
  305.              length.
  306.  
  307.         *    Easily incorporated context-sensitivity.
  308.  
  309.         *    Single and multi-user applications suitability.
  310.  
  311.         *    Full color potential - almost all of the 128 basic
  312.              combinations and their flashing counterparts.
  313.  
  314.         *    Easily learned color editing facility.
  315.  
  316.         *    Ability to use text generated with your preferred ASCII text
  317.              editor, such as QEdit.
  318.  
  319.         *    Automatic generation of a User Manual based on the on-screen
  320.              help text file, including a table of contents (Registered
  321.              users version).
  322.  
  323.  
  324.         2.   Installation
  325.  
  326.         Create a sub-directory for ClipHelp (such as c:\ch) and extract
  327.         all files into it.
  328.  
  329.  
  330.         3.   ClipHelp Demonstration
  331.  
  332.         After installation give the command 'cliphelp' from within the
  333.         sub-directory into which the ClipHelp files have been extracted
  334.         and select the first option of the ClipHelp menu - 'About
  335.         ClipHelp'.
  336.  
  337.         This will use ClipHelp's on-screen help facility to present an
  338.         illustrated description of itself.
  339.  
  340.         Individual topics may be longer than the screen panel in which
  341.         they appear.  Use <cursor down> and <cursor up> to scroll through
  342.         a topic's text beyond the screen's limits, and <PgDn> or <PgUp> to
  343.         summon the next or previous topic to the screen.
  344.  
  345.         <Alt-F1> causes an index of help topics to appear.  Using this, it
  346.         is possible to jump directly to a required topic.
  347.  
  348.  
  349.  
  350.  
  351.  
  352.         -------------------------------------------------------------------
  353.         ClipHelp (C) User Manual      Page 6             S.R. Eddy & Assoc     
  354.  
  355.  
  356.         4.   Steps involved in creating and incorporating Help in your
  357.              Application
  358.  
  359.         a)   Create your HELP.TXT file with an ASCII text editor following
  360.              the guidelines given in the next section.
  361.  
  362.         b)   Run ClipHelp and use its 'Make Help File' option to generate
  363.              a HELP.DAT file from your HELP.TXT file.
  364.  
  365.         c)   Use ClipHelp's 'Edit Colors' option to add color to HELP.DAT.
  366.  
  367.         d)   Use ClipHelp's 'Rewrite Text' option to generate a
  368.              replacement HELP.TXT file incorporating color code
  369.              information.
  370.  
  371.              [Optionally use the ASCII text editor to revise the color-
  372.              coded HELP.TXT file and proceed through b), c) and d) again
  373.              as many times as necessary.]
  374.  
  375.       [ e)   Optionally set PUBLIC (STATIC in the Clipper 5 version)
  376.              variable 'hlp_var' to differing values at points in your
  377.              program where you wish your on-screen help to be context-
  378.              sensitive then use the ASCII text editor to write the same
  379.              values in the appropriate places in your HELP.TXT file (as
  380.              explained later) and regenerate HELP.DAT through steps b), c)
  381.              and d). ]
  382.  
  383.         f)   Copy the HELP.DAT file and the appropriate ClipHelp .OBJ and
  384.              .LIB files (as explained later) to your application's sub-
  385.              directory, incorporate the lines of code given later in your
  386.              application, compile and link.
  387.  
  388.  
  389.         5.   Preparing Help Text
  390.  
  391.         Use an ASCII text editor such as QEdit to prepare your help text,
  392.         observing the following rules:
  393.  
  394.         a)   The file should have the name HELP.TXT.
  395.  
  396.         b)   The maximum width of your help text should be 72, so set your
  397.              editor's right margin to that value.
  398.  
  399.         c)   Precede topic titles with the characters '#$$' in the first
  400.              three columns followed by a space and then the title in up to
  401.              35 characters, eg:
  402.  
  403.                        #$$ Entering sales slip details
  404.  
  405.         d)   Of the extended ASCII values 0 to 255 there are very few that
  406.              have to be avoided:
  407.  
  408.                   009 (tab)           Use spaces instead.
  409.  
  410.  
  411.         -------------------------------------------------------------------
  412.         ClipHelp (C) User Manual      Page 7             S.R. Eddy & Assoc     
  413.  
  414.                   219 (solid box)     This will not matter if you are
  415.                                       preparing a color help facility as
  416.                                       you can use color to simulate this
  417.                                       character.
  418.  
  419.         e)   Do NOT prepare your text file with a word processor which
  420.              inserts codes for line wrap, bold, underlining etc.
  421.  
  422.         Remember to take note of the comments later in this document about
  423.         editing a HELP.TXT file after color information has been added to
  424.         it by ClipHelp's color editor.
  425.  
  426.  
  427.         6.   Creating the on-screen file which your application will use
  428.  
  429.         You must of course have created a HELP.TXT file as described in
  430.         the preceding section before proceeding with the following.
  431.  
  432.         At the command prompt enter the command:
  433.  
  434.                   cliphelp [[[<ExpC1>] <ExpC2> ] ...]
  435.  
  436.         <ExpC1> etc are optional parameters listed later in this document.
  437.         (It is unlikely that you will need to know about these at this
  438.         stage but if the program should not run satisfactorily on your
  439.         screen see whether there is anything under 'ClipHelp parameters'
  440.         which could help you.)
  441.  
  442.         When ClipHelp's opening screen appears press <cursor down> until
  443.         the highlight rests on 'Make Help File' then press <Enter>.
  444.  
  445.         The message line towards the bottom of the screen will ask you to
  446.         confirm your intentions with the message 'Create HELP.DAT (Y/-)?'.
  447.  
  448.         If you have prepared your HELP.TXT file, tap a 'y' to proceed or
  449.         any other character to cancel the command.
  450.  
  451.         The message 'Creating HELP.DAT' will flash in the message line
  452.         while the file is being created followed by confirmation that the
  453.         file has been created.
  454.  
  455.         During the creation of HELP.DAT information is written at the
  456.         beginning of the file about the whereabouts of topic titles and
  457.         their associated text.
  458.  
  459.  
  460.         7.   Adding color to your on-screen help file
  461.  
  462.         Select the option 'Edit Colors' from the ClipHelp menu.
  463.  
  464.         The ClipHelp color editor screen will be displayed with the
  465.         beginning of your HELP.DAT file in the edit window.
  466.  
  467.  
  468.  
  469.  
  470.         -------------------------------------------------------------------
  471.         ClipHelp (C) User Manual      Page 8             S.R. Eddy & Assoc     
  472.  
  473.  
  474.         At the top of the screen is a color code panel with a rectangle
  475.         superimposed on the default help text color code.
  476.  
  477.         The word 'Activity:' appears on the line immediately below the
  478.         color code panel.  As you use the editor one of the following
  479.         descriptions will appear:
  480.  
  481.              Description    Meaning
  482.              -----------    -------
  483.  
  484.              Scrolling      The content of HELP.DAT can be scrolled
  485.                             through the window by pressing <cursor down>
  486.                             or <cursor up>.
  487.  
  488.              Selecting      Appears when <F3> is first pressed accompanied
  489.                             by flashing of the rectangle on the currently
  490.                             selected color code.  In this mode the
  491.                             flashing rectangle will move in the direction
  492.                             of any cursor key pressed, allowing selection
  493.                             of another color.
  494.  
  495.              Moving         Appears when <F3> is pressed while in the
  496.                             Selecting mode together with a flashing arrow
  497.                             as a pointer above the first column of the
  498.                             first line of the edit window.  You can then
  499.                             use <cursor right> or <cursor left> to move
  500.                             the pointer until it is at the beginning of
  501.                             the block which you wish to paint with the
  502.                             color you selected.
  503.  
  504.              Painting       Appears when <F6> is pressed while in the
  505.                             Moving mode.  In this mode the right and left
  506.                             cursor keys behave as follows:
  507.  
  508.                             <cursor right> Colors the character position
  509.                                            beneath the flashing arrow with
  510.                                            the selected color and causes
  511.                                            the arrow to advance one
  512.                                            column.
  513.  
  514.                             <cursor left>  Moves the flashing arrow back a
  515.                                            column but does not affect the
  516.                                            color.
  517.  
  518.              Moving         Appears when <F6> is pressed while in Painting
  519.                             mode.  Behaves exactly as described previously
  520.                             against 'Moving'.
  521.  
  522.              Editing        Appears when <F10> is pressed while in
  523.                             Scrolling mode and allows the text of the line
  524.                             at the top of the window to be edited.  Topic
  525.                             title lines, however, are not allowed to be
  526.                             edited because that might affect entries off-
  527.  
  528.  
  529.         -------------------------------------------------------------------
  530.         ClipHelp (C) User Manual      Page 9             S.R. Eddy & Assoc     
  531.  
  532.                             screen at the top of the file which were
  533.                             entered when HELP.DAT was created.  (Topic
  534.                             titles can be edited later in the HELP.TXT
  535.                             file which you recreate with ClipHelp's
  536.                             'Rewrite Text' - see section later in this
  537.                             document.)
  538.  
  539.         At the bottom of the screen is a list of function keys which are
  540.         used to enter and edit color attributes.  Function keys which
  541.         toggle conditions on and off are indicated in bright red, the
  542.         remainder in bright white.
  543.  
  544.         At any given moment only the function keys available for use will
  545.         be easily legible; others will be displayed in low intensity to
  546.         remind you of their existence but indicate their unavailability at
  547.         that time.
  548.  
  549.         The top line of the screen is used to describe what is happening
  550.         and the significance of particular keys.
  551.  
  552.         Some function keys offer useful short cuts:
  553.  
  554.              <F4>      Automatically selects the default help text color
  555.                        and repositions the color code selection rectangle
  556.                        at that code.
  557.  
  558.              <F5>      Selects the color attribute of the character
  559.                        beneath the flashing arrow.  (A quick way of color
  560.                        editing a line which has recently been edited in
  561.                        HELP.TXT.)
  562.  
  563.              <F8>      Repeats the color attributes of the line at the top
  564.                        of the window in the line beneath it.  (A quick way
  565.                        to do something like color a message panel.)
  566.  
  567.              <F9>      Deletes the color attributes of the line at the top
  568.                        of the window and replaces them with the default
  569.                        help text attribute.  To avoid accidents through
  570.                        inadvertent use this will only be done if you
  571.                        answer the confirmatory question which follows with
  572.                        a 'y'.
  573.  
  574.         Press <F2> to save your selections when you have finished editing
  575.         the color attributes of a line, or <Esc> to cancel them and revert
  576.         to the original attributes.
  577.  
  578.  
  579.         8.   Rewriting HELP.TXT with the codes entered in the color editor
  580.  
  581.         It is most important that this be done following any use of the
  582.         'Edit Colors' option during which changes were made, otherwise
  583.         such changes will be lost should you need to recreate the HELP.DAT
  584.         file to reflect changes in HELP.TXT.
  585.  
  586.  
  587.  
  588.         -------------------------------------------------------------------
  589.         ClipHelp (C) User Manual     Page 10             S.R. Eddy & Assoc     
  590.  
  591.         Select the 'Rewrite Text' option of the ClipHelp menu.  You will
  592.         be asked to confirm your intentions with the message 'Rewrite
  593.         HELP.TXT from HELP.DAT (Y/-)?'.  Tap a 'y' to confirm.  Your
  594.         HELP.TXT file will be rewritten together with information about
  595.         the colors which have been entered in HELP.DAT.  If a previous
  596.         HELP.TXT is found it will be safely renamed HELP.BAK before
  597.         HELP.TXT is rewritten.
  598.  
  599.         When you next look at HELP.TXT in your ASCII text editor you will
  600.         notice that on the lines where color has been introduced color
  601.         information will appear starting at column 79.  Try not to disturb
  602.         this information if you need to edit such lines.  Make sure it
  603.         always starts at column 79.  If an accident occurs you will be
  604.         able, in most circumstances, to repair the damage when you next
  605.         use ClipHelp's 'Edit Colors' option.
  606.  
  607.         In particular, try not to accidentally 'wrap' the color
  608.         information with your text!  Keeping a backup copy of HELP.TXT is
  609.         a good idea.
  610.  
  611.  
  612.         9.   Adding context sensitivity to your HELP.TXT file
  613.  
  614.         When <F1> is pressed in your application ClipHelp searches topic
  615.         entries at the top of HELP.DAT to see whether the character string
  616.         currently assigned to PUBLIC variable 'hlp_var' (STATIC variable
  617.         'hlp_var' in the Clipper 5 version) is there somewhere.  If a
  618.         match is found ClipHelp displays that topic; if not it displays
  619.         the Help Topic Index.
  620.  
  621.         There are (at least) two techniques you can use to introduce
  622.         context sensitivity:
  623.  
  624.         Clipper Summer '87 -
  625.  
  626.         a)   At appropriate spots in your source code assign PUBLIC
  627.              variable 'hlp_var' all - or a unique part of - the applicable
  628.              help topic.  For example, using the sample help topic given
  629.              earlier in this document:
  630.  
  631.                        #$$ Entering sales slip details
  632.  
  633.              you might, in the interests of brevity, use the unique part:
  634.  
  635.                        hlp_var = 'sales slip'
  636.  
  637.              Please note that case IS important.
  638.  
  639.         b)   In lieu of all or part of help topics text use a unique code
  640.              such as 'h1v', 'h2v' etc.  Be sure to maintain a record of
  641.              the codes you have used to avoid double usage.  (If you have
  642.              Turbo GREP or a similar program you can readily get a list of
  643.              such lines from all source code files.)  Using this technique
  644.              you would put in your source code entries such as:
  645.  
  646.  
  647.         -------------------------------------------------------------------
  648.         ClipHelp (C) User Manual     Page 11             S.R. Eddy & Assoc     
  649.  
  650.                        hlp_var = 'h1v'
  651.  
  652.              then, with your ASCII text editor, put 'h1v' on the
  653.              appropriate help topic title line of your HELP.TXT file
  654.              starting at column 45, ie
  655.  
  656.                        #$$ Entering sales slip details             h1v
  657.  
  658.         Clipper 5 -
  659.  
  660.         The technique of referring to a portion of the help topic or
  661.         alternatively using unique codes such as 'h1v', 'h2v' etc is the
  662.         same as that described above.  However, hlp_var is a file-wide
  663.         static variable in CLHLP501.OBJ and values are passed to it with 
  664.         a call to function SetHV().  The equivalents to the examples above
  665.         would be:
  666.  
  667.                        SetHV( 'sales slip' )
  668.  
  669.         and
  670.  
  671.                        SetHV( 'h1v' )
  672.  
  673.         SetHV() returns the current hlp_var value, so that you may save it
  674.         on calling a routine requiring a new value and restore it on
  675.         return from it, eg:
  676.  
  677.                        LOCAL cur_hv := SetHV( 'h21v' )
  678.                        .
  679.                        .
  680.                        SetHV( cur_hv )
  681.  
  682.  
  683.         10.  Printing a User Manual
  684.  
  685.         The 'Print User Man' option translates your HELP.DAT file into a
  686.         paginated user manual complete with a table of contents.
  687.  
  688.         When you select this option you will be asked to enter the
  689.         following pieces of information to be incorporated in your manual:
  690.  
  691.              Program Title
  692.  
  693.                   This is the full title to appear on the first page.
  694.  
  695.              Abbreviated Title
  696.  
  697.                   This is the shortened title which will appear at the
  698.                   bottom left of each page.
  699.  
  700.              Your Business Name
  701.  
  702.                   This is your full business name, to appear on the first
  703.                   page.
  704.  
  705.  
  706.         -------------------------------------------------------------------
  707.         ClipHelp (C) User Manual     Page 12             S.R. Eddy & Assoc     
  708.  
  709.              Abbreviated Name
  710.  
  711.                   The shortened business name to appear at the bottom
  712.                   center of each page.
  713.  
  714.              Your address
  715.  
  716.                   Full address - street, city, state, zip.
  717.  
  718.              Your Telephone, Fax & Data Numbers
  719.  
  720.                   Self-explanatory.
  721.  
  722.         Printer output should suit most industry-compatible laser and dot
  723.         matrix printers. The program endeavors to filter out the ASCII
  724.         characters < 32 likely to feature in your help text in case they
  725.         interfere with your printer's operation.
  726.  
  727.         You will find that the cover and table of contents will be the
  728.         last two pages printed.  To avoid taking liberties with your
  729.         printer the cover is a very plain affair which you may wish to
  730.         replace with something more exciting.
  731.  
  732.         Prior to printing, you may find it beneficial to use one of the
  733.         several utilities generally available from bulletin boards which
  734.         redirects printer output to a disk file.  You can then examine the
  735.         print file with your ASCII text editor to ensure that page breaks
  736.         are suitable.
  737.  
  738.         Should you find it desirable to force a page break at a place
  739.         prior to that selected by the program, note the line or lines,
  740.         then edit the HELP.TXT file and place a slash ('/') in column 73
  741.         on those lines, being careful not to displace any color codes from
  742.         their start column of 79.  Next, run ClipHelp's 'Make Help File'
  743.         option to remake HELP.DAT from the edited HELP.TXT file and then
  744.         re-run the 'Print User Man' option.
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.         -------------------------------------------------------------------
  766.         ClipHelp (C) User Manual     Page 13             S.R. Eddy & Assoc     
  767.  
  768.  
  769.         11.  Clipper Summer '87 version - PUBLIC variables to declare in
  770.              your application
  771.  
  772.         Include the following statements and function call in the main
  773.         .PRG module of your application (or in your setup procedure if you
  774.         use one):
  775.  
  776.              * ----- Declare ClipHelp PUBLIC variables
  777.              PUBLIC no_pages,;        && (N) ) Used
  778.                    no_topics,;        && (N) ) within
  779.                       st_rec,;        && (N) ) ClipHelp
  780.                     head_tag,;        && (C))
  781.                      hlp_var,;        && (C) Context-sensitivity variable
  782.                      explode,;        && (L) .T. - explode boxes, else .F.
  783.                      expl_in,;        && (N) Box expansion increment 1-2.
  784.                      expl_dl,;        && (N) 0=fastest. Increase to slow.
  785.                       shadow,;        && (L) .T. - shadow boxes, else .F.
  786.                         mono          && (L) .T. - force mono, .F. - color
  787.  
  788.              * ----- Declare default values
  789.              STORE   0 TO no_pages, no_topics, st_rec
  790.              STORE  '' TO hlp_var, head_tag
  791.              STORE .T. TO explode     && Change these to suit your
  792.              STORE .T. TO shadow      && preferences.  You could use
  793.              STORE .F. TO mono        && command line parameters in
  794.              expl_in = 1              && your application
  795.              expl_dl = 5              && if you wish.
  796.  
  797.              * ----- Call function which gathers important information
  798.              *       from HELP.DAT for later use when <F1> pressed
  799.              LdHelpMU()
  800.  
  801.         IMPORTANT: Don't forget to include the all-important LdHelpMU()
  802.         function call above in your setup procedure or very early in your
  803.         main .PRG file.
  804.  
  805.  
  806.         12.  Clipper 5 version - Declarations in your application
  807.  
  808.         All variables in the Clipper 5 version .OBJ file (CLHLP501.OBJ)
  809.         are LOCAL or file-wide STATIC.  There is no need to declare any
  810.         variables elsewhere in your application.
  811.  
  812.         At the points in your application where you wish to change its
  813.         context sensitivity, pass the character string or code with a call
  814.         to the function SetHV().  See the section headed 'Clipper 5 -'
  815.         under section 9. above for details of its use.
  816.  
  817.         The only line necessary to add to a Clipper 5 application to
  818.         provide access to ClipHelp is:
  819.  
  820.              LdHelpMU()
  821.  
  822.  
  823.  
  824.         -------------------------------------------------------------------
  825.         ClipHelp (C) User Manual     Page 14             S.R. Eddy & Assoc     
  826.  
  827.         Optionally, the Clipper 5 LdHelpMU() function can have one or more
  828.         of the following parameters:
  829.  
  830.              Parameter 1    .T. = force monochrome performance
  831.                                                            (default .F.)
  832.              Parameter 2    .F. = inhibit panel shadows    (default .T.)
  833.              Parameter 3    .F. = inhibit panel explosion  (default .T.)
  834.              Parameter 4    <N> explosion expansion increment 1|2
  835.                                                            (default 2)
  836.              Parameter 5    <N> explosion expansion delay - the lower the
  837.                             value the faster the explosion (default 5)
  838.  
  839.  
  840.         13.  Points to remember when using INKEY(0)
  841.  
  842.         If your program uses INKEY(0) and you press <F1> you will not get
  843.         on-screen help in the ordinary course because INKEY() is not a
  844.         'wait state' like WAIT, ACCEPT, READ, INPUT or MENU TO.  To
  845.         overcome this, use a function such as:
  846.  
  847.         FUNCTION Await               && (C) S.R. Eddy & Associates 1989
  848.  
  849.         * Syntax  :     Await()
  850.         * Purpose :     Allow HELP to be accessed during an INKEY(0)
  851.         * Dependencies: None
  852.         * Returns :     INKEY() value
  853.  
  854.         DO WHILE .T.
  855.              IF INKEY(0) = 28
  856.                   * ----- <F1> pressed.  Essential to pass dummy
  857.                   *       parameters so that ClipHelp can avoid recursion.
  858.                   DO HELP WITH "",0,"" && In Clipper 5 you can put Help()
  859.              ELSE
  860.                   EXIT
  861.              ENDIF
  862.         ENDDO
  863.         RETURN ( LASTKEY() )
  864.  
  865.         and replace 'INKEY(0)' with 'Await()' throughout your program.
  866.  
  867.  
  868.         14.  Linking ClipHelp's .OBJ and .LIB files with your application
  869.  
  870.         CLHLPS87.OBJ/CLHLP501.OBJ and HLPCS87.LIB/HLPC501.LIB are all that
  871.         are needed to be added to your linker instructions.  Proceed as
  872.         follows:
  873.  
  874.         Clipper Summer '87:
  875.  
  876.              a)   Add 'clhlps87' to the list of object files in your
  877.                   linker command or .LNK file.
  878.  
  879.              b)   Add 'hlpcs87' to the list of libraries in your linker
  880.                   command or .LNK file.
  881.  
  882.  
  883.         -------------------------------------------------------------------
  884.         ClipHelp (C) User Manual     Page 15             S.R. Eddy & Assoc     
  885.  
  886.         Clipper 5.01
  887.  
  888.              c)   Add 'clhlp501' to the list of object files in your
  889.                   linker command or .LNK file.
  890.  
  891.              d)   Add 'hlpc501' to the list of libraries in your linker
  892.                   command or .LNK file.
  893.  
  894.         IMPORTANT:  The library files mentioned above contain functions
  895.         written in C.  If your application includes overlays please be
  896.         sure to refer to the your linker's user manual to see whether it
  897.         allows such libraries to be overlaid before attempting to do so.
  898.  
  899.  
  900.         15.  ClipHelp command line parameters
  901.  
  902.         ClipHelp will interpret certain command line parameters given in
  903.         the following format:
  904.  
  905.              cliphelp [<topic1>=<on>/<off> [<topic2>=<on>/<off> [...]]]
  906.  
  907.         Parameter options:
  908.  
  909.              a)   If ClipHelp thinks you have a color monitor but in fact
  910.                   you don't, force mono with:
  911.  
  912.                        mono=on        (default is off)
  913.  
  914.              b)   If you find assembly of ClipHelp's opening screen
  915.                   irritating you can turn it off with:
  916.  
  917.                        frag=off       (default is on)
  918.  
  919.              c)   Turn off box shadows with:
  920.  
  921.                        shadow=off     (default is on)
  922.  
  923.              d)   Turn off exploding boxes with:
  924.  
  925.                        explode=off    (default is on)
  926.  
  927.              e)   Adjust exploding speed by some value between 1 (fast) 
  928.                   and 20 (slow):
  929.  
  930.                        explspeed=10   (default is 5)
  931.  
  932.              f)   Adjust exploding box increment value between 1 and 2:
  933.  
  934.                        explincr=2     (default is 1)
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.         -------------------------------------------------------------------
  943.         ClipHelp (C) User Manual     Page 16             S.R. Eddy & Assoc     
  944.  
  945.  
  946.         16.  Credits
  947.  
  948.         My thanks to Gary Louth and John Buxton for helpful suggestions
  949.         during development and for testing the results.
  950.  
  951.  
  952.         17.  Copyright, Trademark etc
  953.  
  954.         Nantucket(R) and Clipper(R) are registered trademarks of Nantucket
  955.         Corporation.
  956.  
  957.         QEdit is a registered trademark of Applied Systems Technologies,
  958.         Inc.
  959.  
  960.         Turbo GREP is a registered trademark of Borland International.
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.         -------------------------------------------------------------------
  1002.         ClipHelp (C) User Manual     Page 17             S.R. Eddy & Assoc     
  1003.  
  1004.